package com.orphan.audit.controller;


import com.orphan.audit.po.PromotionAudit;
import com.orphan.audit.service.IPromotionAuditService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author yichen
 * @since 2021-07-14
 */
@RestController
@RequestMapping("/promotion-audit")
public class PromotionAuditController {
    @Autowired
    private IPromotionAuditService promotionAuditService;
    @GetMapping("getAll")
    private List<PromotionAudit> getAll(){
        List<PromotionAudit>promotionAudits = promotionAuditService.getAll();
        return promotionAudits;
    }
}
